package org.arrow.db.dao;

import java.util.ArrayList;
import java.util.List;

/**
 * Э��hibernate��ѯ��¼�������
 * @author ���Ĵ�
 *
 */
public class HibernateSqlBean {
	private String sql="";

	private List list=new ArrayList();
	
	private int index=0;
	
	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public List getStringParamList() {
		return list;
	}

	public void setStringParamList(List list) {
		this.list = list;
	}
	
	/**
	 * ��Ӳ���
	 * @author ���Ĵ�
	 * @param value ����ֵ
	 * @return ���ز�����
	 */
	public String addStringParam(String value){
		index++;
		String label="dingwenchun"+index;
		this.list.add(new LabelValueBean(label,value));
		return label;
	}
	
	public String addStringParam(String label,String value){
		this.list.add(new LabelValueBean(label,value));
		return label;
	}
}
